<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>Internationalization</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">Internationalization</p>
<hr class="separator">
<div class="content">Internally, ChartDirector uses Unicode to handle text. It fully supports international characters (that is, non-English and non-ASCII characters).
</div><p class="heading1a">International Fonts</p><div class="content">
For ChartDirector to draw an international character in an image, it must use the proper fonts. By default, ChartDirector uses the <i>Arial</i> font. If the <i>Arial</i> font does not contain characters you want to display, you may need to specify an alternative font that contains the characters you need.<br><br>
You may change the default font by using <a href="BaseChart.setDefaultFonts.htm">BaseChart.setDefaultFonts</a> or <a href="DrawArea.setDefaultFonts.htm">DrawArea.setDefaultFonts</a>. ChartDirector API also allows changing the fonts in some particular text labels in the chart. For example, you may use the <a href="BaseChart.addTitle.htm">BaseChart.addTitle</a> to specify the font for the chart title. Finally, you may use the <a href="cdml.htm">ChartDirector Mark Up Language</a> to specify the font used for any text.
</div><p class="heading1a">Code Page</p><div class="content">
If you are using international characters as string literals in your source code, please make sure your programming language interpreter or compiler can understand the encoding of the international characters.<br><br>
On a web environment, note that even if a web server can serve international web pages correctly, it does not mean that the the web server understands international characters. It may simply pass the characters transparently to the browser. For plain HTML web pages, only the browser needs to understand international characters and have the correct international fonts, not the server.<br><br>
On the other hand, for ChartDirector applications, charts are rendered on the server side. Therefore, the server needs to understand the international characters and have the proper fonts installed, while there is no particular requirement for the browser. You may need to use the pageEncoding attribute of the @page directive to ensure your JSP understands your encoding. For example:<br><br>
<div class="indentedblock"><code>&lt;%@page import=<wbr>"ChartDirector.*" pageEncoding=<wbr>"Big5"%&gt;</code></div><br>
For standalone applications, you may need to use the "-encoding" flag of the "javac" compiler to ensure the compiler understands your encoding.
</div><p class="heading1a">Number and Date/Time Formats</p><div class="content">
In ChartDirector, the decimal point, thousand separator and the names used for months, weekdays, etc., are all configurable.<br><br>
For example, instead of using "." as the decimal point, you may configure ChartDirector to use "," as the decimal point using <a href="BaseChart.setNumberFormat.htm">BaseChart.setNumberFormat</a>, or by using <a href="paramsub.htm">Parameter Substitution and Formatting</a>.<br><br>
Similarly, instead of using "Sun", "Mon", "Tue", ... etc, for the weekday names in date formatting, you may use <a href="BaseChart.setWeekDayNames.htm">BaseChart.setWeekDayNames</a> to supply another set of names. The same applies to month names using <a href="BaseChart.setMonthNames.htm">BaseChart.setMonthNames</a>, and to AM/PM representation using <a href="BaseChart.setAMPM.htm">BaseChart.setAMPM</a>.</div><br>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div></body>
</HTML>
